.code {
  ol, ul {
    padding-left: 2rem;
  }
  ol {
    list-style-type: decimal;
  }
  ul {
    list-style: unset;
  }

  // 代码片段
  pre {
    font-family: Consolas, Arial, Helvetica, sans-serif;
    background-color: var(--ink);
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 5px;
    position: relative;
    overflow: auto;
    transition: all 0.5s;
    &::-webkit-scrollbar,
    &::-webkit-scrollbar-corner {
      background-color: transparent;
    }
    &::-webkit-scrollbar:horizontal {
      cursor: default;
      height: 6px;
    }
    &::-webkit-scrollbar-thumb {
      border-radius: 3px;
      background-color: var(--tipColor);
    }

    // &::after {
    //   background-color: var(--warning);
    //   left: 28px;
    // }

    code {
      color: var(--tipColor);
      &::before {
        background-color: var(--opacity-cyan-1);
        left: 47px;
      }
    }
  }

  p {
    margin-bottom: 0.5rem;
    code {
      line-height: 1;
      color: var(--error);
      background-color: var(--opacity-cyan-3);
      font-size: 0.8rem;
      padding: 2px 10px;
      margin: 0 3px;
      border-radius: 3px;
    }

    strong {
      font-weight: 700;
    }
    em {
      font-style: italic;
    }
  }
}

.code,
.mood {
  line-height: 1.5;
  // 标题
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 700;
    margin: 1rem 0;
    font-family: Arial, Helvetica, sans-serif;
    padding-left: 1rem;
    border-left: 5px solid transparent;
  }
  h1 {
    font-size: 2rem;
    padding-left: 0;
  }
  h2 {
    font-size: 1.8rem;
    border-left-color: var(--error);
  }
  h3 {
    font-size: 1.6rem;
    border-left-color: var(--warning);
  }
  h4 {
    font-size: 1.4rem;
    border-left-color: var(--dark-success);
  }
  h5 {
    font-size: 1.2rem;
    border-left-color: var(--dark-primary);
  }
  h6 {
    font-size: 1rem;
    border-left-color: var(--lightBlue);
  }
  a {
    color: var(--dark-primary);
    transition: all 0.3s ease;
    &:hover {
      color: var(--primary);
    }
  }

  img {
    display: block;
    width: 100%;
    padding: 15px;
  }

  blockquote {
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 5px solid var(--border);
    background-color: var(--opacity-cyan-3);
    border-radius: 0 5px 5px 0;
    p {
      margin-bottom: 0!important;
    }
  }

  strong {
    font-weight: 700;
  }
}

.mood {
  code {
    font-size: 14px;
    font-style: italic;
  }
  pre {
    overflow: auto;
  }
}
